package com.firstclass.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.firstclass.entity.TakecourseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author
 * @email ${email}
 * @date 2021-12-09 15:41:30
 */
@Repository
@Mapper
public interface TakecourseDao extends BaseMapper<TakecourseEntity> {

    List<TakecourseEntity> selectByCondition(Map<String, Object> map);

    @Update("update `takecourse` set `status` = #{status} where `id` = #{id}")
    int updateStatus(@Param("id") Integer id, @Param("status") Integer status);

}
